<script type="text/javascript" src="{:SITE_URL}/apps/{$app_show}/Tpl/default/Public/Js/common.js"></script>
<script type="text/javascript" src="{:SITE_URL}/apps/{$app_show}/Tpl/default/Public/Js/group.interesting.js"></script>
<link href="{:SITE_URL}/apps/{$app_show}/Tpl/default/Public/group.css" rel="stylesheet" type="text/css" />
<script>
var display_interesting_group = 'main';
$(document).ready(function(){
    change_interesting_group(1);
});
</script>
<div class="mainbox_R">
<div class="box_create"><a href="{:U('group/index/newIndex')}" class="btn_group_s"></a></div>
<div class="rankGroup_box clearfix">
        <ul class="rankBlog">
	      <h4>群组分类</h4>
            <volist name="category_tree" id="category_top">
            <li>
              <a name="group_category"></a>
              <h3><a href="{:U('group/Index/search', array('cid'=>$category_top['a']))}" class="MIB_linkar">{$category_top['t']}</a><span>({$category_top['count']})</span></h3>
            </li>
            </volist>
          </ul>
</div>
<div class="right_box">
  <php>if (!empty($hot_group_list)) {</php>
      <h2>群组排行榜</h2>
      <dl class="fans_toplist">
      <dt><span class="right">成员数</span>群组</dt>
        <volist name="hot_group_list" id="hot_group">
          <php>if($key>2){ $class='no'; }else{ $class='no top'.($key+1); }</php>
          <dd>
            <span class="right">{$hot_group['membercount']}</span>
            <em class="{$class}">{$key+1}</em>
            <a href="{:U('group/Group/index', array('gid'=>$hot_group['id']))}">
              <img style="vertical-align:middle" src="__ROOT__/thumb.php?w=25&h=25&t=f&url={$hot_group['logo']|get_photo_url}">
            </a>
            <a class="username" href="{:U('group/Group/index', array('gid'=>$hot_group['id']))}" target="_blank">{$hot_group['name']|getShort=6,'...'}</a>
          </dd>
        </volist>
      </dl>
      <php>} // end if</php>
    </div>
    <php>if (!empty($hot_tags_list)) {</php>
<div class="right_box">
      <h2>热门群标签</h2>
      <ul class="topic_list">
        <volist name="hot_tags_list" id="hot_tag">
          <li><a href="{:U('group/Index/search', array('k'=>urlencode($hot_tag['tag_name'])))}" target="_blank">{$hot_tag['tag_name']}({$hot_tag['count']})</a></li>
        </volist>
      </ul>
    </div>
    <php>} // end if</php>
</div>
<div class="mainbox_C main_pad" >
		<div class="box_data_group">
            <em class="left ico_quotes_left"></em>
            <em class="right ico_quotes_right"></em>
            <h4>
                <span><strong class="f1">{$count.member}</strong>个群居民</span>
                <span><strong class="f2">{$count.group}</strong>个兴趣群</span>
                <span><strong class="f3">{$count.topic}</strong>个群话题</span>
            </h4>
            <h5>每天100多个新群诞生,300多位新人入住,总有一群人和你一样!</h5>
        </div>
        <!--你可能敢兴趣的群 -->
        <div class="group_box_s" id="interesting_group_list">
        </div>
        <!--/你可能敢兴趣的群 -->
        <div class="group_box">
          <div class="searchBox">
            <form action="{:U('group/Index/search')}" method="post" onsubmit="javascript:if(this.k.value.length <= 0){return false;}" target="_blank">
              <div style="*zoom:1"><input name="k" type="text" class="text_group_s left" value="请输入您要查找的群名称..."  onfocus="if(this.value == '请输入您要查找的群名称...')this.value='';" onblur="if(this.value == '')this.value='请输入您要查找的群名称...';" /><input type="submit" class="btn_group left" value="" /></div>
            </form>
            <p class="sch_hot mt10"><if condition="$reTags"><strong>热门：</strong>
            <volist name="reTags" id="tag"><a href="{:U('group/Index/search', array('k'=>urlencode($tag)))}" target="_blank">{$tag}</a></volist>
            </if></p>
          </div>
	      <!--群组热帖 -->
	      <div class="group_hot_list">
	          <h2 class="lineS_btm">群组热帖</h2>
	          <if condition="$hot_thread_list">
	          <ul style="margin:0;padding:10px 0 0 0">
	            <volist name="hot_thread_list" id="thread">
		            <li class="">
		              <div class="c1 OverH">
		                <if condition="$thread['dist']"><span class="jh right" style="display:none" title="精华">精</span></if>
		                <a href="{:U('group/Topic/topic',array('gid'=>$thread['gid'], 'tid'=>$thread['id']))}" title="{$thread['title']}" target="_blank">
		                    {$i}. {$thread['title']|getShort=###, 15, '...'}</a>
		                    <if condition="$thread['attach'] && 'N;' neq $thread['attach']"><img
		                    src="{:SITE_URL}/apps/{$app_show}/Tpl/default/Public/images/ico_acc.gif" alt="附件" title="附件" class="alM" /></if>                
		              </div>
                        <div class="feed_quote">
                              <div class="q_tit"><img src="http://localhost/ts_2.5/public/themes/newstyle/images/zw_img.gif" class="q_tit_l"></div>
                              <div class="q_con"><php>echo getShort(text($thread['content']),200,'...');</php></div>
	                    <div class="q_btm"><img src="http://localhost/ts_2.5/public/themes/newstyle/images/zw_img.gif" class="q_btm_l"></div>
	                  </div>
                      </li>
	            </volist>
	          </ul>
	          </if>
          </div>
	      <!--/群组热帖 -->
          <!--群组分类-->
          
        </div>
        <!--/微群分类-->

        <div class="c"></div>
</div>
<div class="c"></div>